<!doctype html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>js示例4-6-6</title>
	<script>
		var numbers = [98,87,73,94], sum = 0;
		for(var i in numbers){
			sum = sum + numbers[i];
		}
		alert("总分为：" + sum);
	</script>
</head>
<body>
	
</body>
</html>